
local lcf = ffi.C


function OnHttpReq2(method, path, idx)

	local r1 = redis.get(0, 'foo')

	local response = 'HTTP/1.1 200 OK\r\nContent-Length: 7\r\n\r\n'..r1
	--local response = 'HTTP/1.1 200 OK\r\nContent-Length: 7\r\n\r\nABCDEFG'
	lcf.gx_write_here(idx, response, #response)

end
